package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import java.util.Date;

import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_ALIPAY_ORDER_NO;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_DETAIL_ID;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_ERROR_CODE;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_ERROR_MSG;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_MONEY;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_NAME;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_ORDER_TITLE;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_PAYEE_ACCOUNT;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_PAYEE_NAME;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_PAYEE_TYPE;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_PAY_TIME;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_REMARK;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_STATUS;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_ZFB_BATCH_ID;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_ZFB_GMT_CREATE;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.E_ZFB_GMT_FINISH;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_ALIPAY_ORDER_NO_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_DETAIL_ID_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_ERROR_CODE_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_ERROR_MSG_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_NAME_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_ORDER_TITLE_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_PAYEE_ACCOUNT_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_PAYEE_NAME_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_PAYEE_TYPE_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_REMARK_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_STATUS_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_ZFB_BATCH_ID_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_ZFB_GMT_CREATE_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.M_ZFB_GMT_FINISH_MAX;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_ALIPAY_ORDER_NO;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_DETAIL_ID;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_ERROR_CODE;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_ERROR_MSG;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_MONEY;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_NAME;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_ORDER_TITLE;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_PAYEE_ACCOUNT;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_PAYEE_NAME;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_PAYEE_TYPE;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_PAY_TIME;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_REMARK;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_STATUS;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_ZFB_BATCH_ID;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_ZFB_GMT_CREATE;
import static org.jsola.hr.example.TransferAccountsZfbDetailExample.N_ZFB_GMT_FINISH;

/**
 * 转账明细(支付宝)
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【转账明细(支付宝)】的参数")
@Data
public class TransferAccountsZfbDetailAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 256, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_PAYEE_ACCOUNT, example = E_PAYEE_ACCOUNT)
    @Length(max = 100, message = M_PAYEE_ACCOUNT_MAX)
    private String payeeAccount;

    @ApiModelProperty(notes = N_PAYEE_TYPE, example = E_PAYEE_TYPE)
    @Length(max = 32, message = M_PAYEE_TYPE_MAX)
    private String payeeType;

    @ApiModelProperty(notes = N_PAYEE_NAME, example = E_PAYEE_NAME)
    @Length(max = 140, message = M_PAYEE_NAME_MAX)
    private String payeeName;

    @ApiModelProperty(notes = N_MONEY, example = E_MONEY)
    private BigDecimal money;

    @ApiModelProperty(notes = N_ORDER_TITLE, example = E_ORDER_TITLE)
    @Length(max = 64, message = M_ORDER_TITLE_MAX)
    private String orderTitle;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 256, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_ZFB_BATCH_ID, example = E_ZFB_BATCH_ID)
    @Length(max = 32, message = M_ZFB_BATCH_ID_MAX)
    private String zfbBatchId;

    @ApiModelProperty(notes = N_DETAIL_ID, example = E_DETAIL_ID)
    @Length(max = 32, message = M_DETAIL_ID_MAX)
    private String detailId;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    @Length(max = 16, message = M_STATUS_MAX)
    private String status;

    @ApiModelProperty(notes = N_ALIPAY_ORDER_NO, example = E_ALIPAY_ORDER_NO)
    @Length(max = 64, message = M_ALIPAY_ORDER_NO_MAX)
    private String alipayOrderNo;

    @ApiModelProperty(notes = N_ERROR_CODE, example = E_ERROR_CODE)
    @Length(max = 100, message = M_ERROR_CODE_MAX)
    private String errorCode;

    @ApiModelProperty(notes = N_ERROR_MSG, example = E_ERROR_MSG)
    @Length(max = 200, message = M_ERROR_MSG_MAX)
    private String errorMsg;

    @ApiModelProperty(notes = N_ZFB_GMT_CREATE, example = E_ZFB_GMT_CREATE)
    @Length(max = 64, message = M_ZFB_GMT_CREATE_MAX)
    private String zfbGmtCreate;

    @ApiModelProperty(notes = N_ZFB_GMT_FINISH, example = E_ZFB_GMT_FINISH)
    @Length(max = 64, message = M_ZFB_GMT_FINISH_MAX)
    private String zfbGmtFinish;

    @ApiModelProperty(notes = N_PAY_TIME, example = E_PAY_TIME)
    private Date payTime;


}

